package edu.zju.gis.dldsj.dao;

import edu.zju.gis.dldsj.entity.WfDag;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WfDagMapper {
    int deleteByPrimaryKey(String dagId);

    int insert(WfDag record);

    int insertSelective(WfDag record);

    WfDag selectByPrimaryKey(String dagId);

    int updateByPrimaryKeySelective(WfDag record);

    int updateByPrimaryKey(WfDag record);

    int selectCount();

    int selectCountByUser(String userId);

    List<WfDag> selectByPage(@Param("userId") String userId, @Param("offset") int offset, @Param("size") int size);
}